{% extends "./base.html" %}
{%block user %}

<ul class="user floatr">
{% if not user.is_authenticated %}
<li id="mn_portal"><a href="{% url 'user_login' %}" hidefocus="true" title="登陆">登陆</a></li>
<li class="a" id="mn_forum"><a href="{% url 'user_register' %}" hidefocus="true" title="注册">注册</a></li>
{%else%}
<li id="mn_portal"><a href="{% url 'show_notice' %}" hidefocus="true" title="消息">{{user.username}}({%if message_number %}{{message_number}}{%else%}0{%endif%})</a></li>
<li id="mn_portal"><a href="{% url 'user_logout'%}" hidefocus="true" title="注销">注销</a></li>
{% endif %}

</ul>

{% endblock %}
{% for column in column_list %}
	板块：<a href="{{ column.get_absolute_url }}">{{ column.name }}</a> ; 管理员:{{ column.manager }}; 帖子:{{column.post_number}}<br>
	帖子列表：
	{% for post in column.post_set.all %}
		<a href="{{ post.get_absolute_url }}">{{ post.title }}</a>|<a href="{% url 'post_delete' post.pk %}">删除</a>
	{% endfor %}
	<br>
{% endfor %}
